home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsILineInputStream.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  105 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsILineInputStream.idl
  3.  */
  4.  
  5. #ifndef __gen_nsILineInputStream_h__
  6. #define __gen_nsILineInputStream_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsILineInputStream; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsILineInputStream */
  21. #define NS_ILINEINPUTSTREAM_IID_STR "c97b466c-1e6e-4773-a4ab-2b2b3190a7a6"
  22.  
  23. #define NS_ILINEINPUTSTREAM_IID \
  24.   {0xc97b466c, 0x1e6e, 0x4773, \
  25.     { 0xa4, 0xab, 0x2b, 0x2b, 0x31, 0x90, 0xa7, 0xa6 }}
  26.  
  27. class NS_NO_VTABLE nsILineInputStream : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ILINEINPUTSTREAM_IID)
  31.  
  32.   /**
  33.    * Read a single line from the stream, where a line is a 
  34.    * possibly zero length sequence of 8bit chars terminated by a
  35.    * CR, LF, CRLF, LFCR, or eof.
  36.    * The line terminator is not returned.
  37.    * @retval false
  38.    *         End of file. This line is the last line of the file
  39.    *         (aLine is valid).
  40.    * @retval true
  41.    *         The file contains further lines.
  42.    * @note Do not mix readLine with other read functions.
  43.    *       Doing so can cause various problems and is not supported.
  44.    */
  45.   /* boolean readLine (out ACString aLine); */
  46.   NS_IMETHOD ReadLine(nsACString & aLine, PRBool *_retval) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSILINEINPUTSTREAM \
  52.   NS_IMETHOD ReadLine(nsACString & aLine, PRBool *_retval); 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_NSILINEINPUTSTREAM(_to) \
  56.   NS_IMETHOD ReadLine(nsACString & aLine, PRBool *_retval) { return _to ReadLine(aLine, _retval); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSILINEINPUTSTREAM(_to) \
  60.   NS_IMETHOD ReadLine(nsACString & aLine, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadLine(aLine, _retval); } 
  61.  
  62. #if 0
  63. /* Use the code below as a template for the implementation class for this interface. */
  64.  
  65. /* Header file */
  66. class nsLineInputStream : public nsILineInputStream
  67. {
  68. public:
  69.   NS_DECL_ISUPPORTS
  70.   NS_DECL_NSILINEINPUTSTREAM
  71.  
  72.   nsLineInputStream();
  73.  
  74. private:
  75.   ~nsLineInputStream();
  76.  
  77. protected:
  78.   /* additional members */
  79. };
  80.  
  81. /* Implementation file */
  82. NS_IMPL_ISUPPORTS1(nsLineInputStream, nsILineInputStream)
  83.  
  84. nsLineInputStream::nsLineInputStream()
  85. {
  86.   /* member initializers and constructor code */
  87. }
  88.  
  89. nsLineInputStream::~nsLineInputStream()
  90. {
  91.   /* destructor code */
  92. }
  93.  
  94. /* boolean readLine (out ACString aLine); */
  95. NS_IMETHODIMP nsLineInputStream::ReadLine(nsACString & aLine, PRBool *_retval)
  96. {
  97.     return NS_ERROR_NOT_IMPLEMENTED;
  98. }
  99.  
  100. /* End of implementation class template. */
  101. #endif
  102.  
  103.  
  104. #endif /* __gen_nsILineInputStream_h__ */
  105.